package com.jiazhong.cloud.sentinel.consumer.service.impl;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.jiazhong.cloud.sentinel.consumer.feign.SentinelProviderFeign;
import com.jiazhong.cloud.sentinel.consumer.service.SentinelConsumerService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class SentinelConsumerServiceImpl implements SentinelConsumerService {
    @Resource
    private SentinelProviderFeign sentinelProviderFeign;

    @Override
    public String a() {
        return sentinelProviderFeign.a();
    }

    @Override
    public String b() {
        return sentinelProviderFeign.b();
    }

    @SentinelResource("messageD")
    public String d() {
        return "This is SentinelConsumerService`d method!";
    }
}
